<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style type="text/css">
body {background:url(page_bg.png);}
img{ border:none}
*{ margin:0; padding:0; font-size:14px; color:#333}

.c{
    padding:10px;
}
    
.b{
    border-bottom-left-radius:3px;
    border-bottom-right-radius:3px;
    border-top-left-radius:3px;
    border-top-right-radius:3px;
    border-width:1px;
    border-style:solid;
    border-top-color:#dcdcdc;
    border-right-color:#dcdcdc;
    border-bottom-color:#dcdcdc;
    border-left-color:#dcdcdc;
    margin:5px auto 0;
    background-color:white;
    width:302px;
}
    
.b span {
    padding-right:15px;
}

.top-line {
	border:none;
	border-top:1px solid #dcdcdc;
}

#area_choice span {
	color:gray;
	margin-left:10px;
}
#area_choice img {
	float:right;
}

#textfield_div div {
	padding-left:40px;
}

</style>
<script>
function verify_number(obj) {
        
    if (obj.value.length == 0) {
        location.href='open:alert?请正确的填写运费数据';
        return false;
    }
        
    var reg = new RegExp("^[0-9]*$");
    if (!reg.test(obj.value)) {
        location.href='open:alert?运费数据请填写正整数';
        return false;
    }
        
    return true;
}
    
function tester() {
        
    var result = false;
    
    if (verify_number(default_quantity) && verify_number(default_amount) && verify_number(exceed_quantity) && verify_number(exceed_amount)) {
        result = true;
    }
        
    return result;
}
    
////////////////////////////////////
    
function unit_refresh(val) {
    var unit_strings = document.getElementsByName("unit_string");
    for (var i = 0; i < unit_strings.length; i++) {
        unit_strings[i].innerHTML = val;
    }
}
</script>
</head>
<body>

<div class="b">
	<div id="area_choice" class="c" onClick="javascript:location.href='open:area_select_vc';">选择区域<span>请选择设置运费的区域</span><img src="arrow-r.png"></div>
	<div id="area_list" class="top-line" style='padding:0 10px'></div>
</div>
<div class="b" id="textfield_div">
	<div class="top-line c" style="padding-left:80px">
        <input type='text' name='unit_value' id='default_quantity' size='5' onBlur="verify_number(this);">件内，
        <input type='text' name='unit_price' id='default_amount' size='5' onBlur="verify_number(this);">元
    </div>
	<div class="top-line c" style="padding-left:80px">
        每增加<input type='text' name='addition_unit_value' id='exceed_quantity' size='5' onBlur="verify_number(this);">件内，
        <input type='text' name='addition_unit_price' id='exceed_amount' size='5' onBlur="verify_number(this);">元
    </div>
    <div class="top-line c" style="padding-left:40px; color:gray">
        温馨提示：计价单位“件”以商品单位为准
    </div>
</div>

<div style="width:302px; margin:20px auto 0" id="delete_button">
    <img src='button_4.png' width='302' height='42' onClick="javascript:location.href='delete:freight';">
</div>

</body>
</html>